From 5f34018025ad1da053882b8b5140e2e30ecd062c Mon Sep 17 00:00:00 2001 From: Bernd Zeimetz Date: Fri, 30 Apr 2010 11:27:59 +0200 Subject: [PATCH] Do some housekeeping in debian/rules. --- debian/rules | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/debian/rules b/debian/rules index a4fdc0bab..93fba8503 100755 --- a/debian/rules +++ b/debian/rules @@ -18,6 +18,9 @@ ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) else CFLAGS += -O2 endif +LDFLAGS += -Wl,-z,defs +CONFENV = LDFLAGS="$(LDFLAGS)" CFLAGS="$(CFLAGS)" + configure: configure-stamp gui/Makefile configure-stamp: patch @@ -28,12 +31,10 @@ endif ifneq "$(wildcard /usr/share/misc/config.guess)" "" cp -f /usr/share/misc/config.guess config.guess endif - $(SHELL) ./configure --with-zlib=system --with-doc=debian/doctmp \ + $(CONFENV) ./configure --with-zlib=system --with-doc=debian/doctmp \ --prefix=/usr - # Add here commands to configure the package. - mkdir -p xmldoc/autogen - touch configure-stamp + touch $@ gui/Makefile: patch cd gui && qmake-qt4 @@ -78,7 +79,7 @@ clean-patched: install: build-stamp build-gui-stamp dh_testdir dh_testroot - dh_clean -k + dh_prep dh_installdirs # Add here commands to install the package into debian/gpsbabel. -- 2.30.2